package com.appkubes.fintech.restful.application.user.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author: wuzhijian
 * @Date: 2019/12/27
 * @Description: 银行卡认证
 */
@Data
public class UserBankCardVO {


    @ApiModelProperty("用户key")
    @NotBlank(message = "用户key不能为空")
    private String userKey;
    @ApiModelProperty("银行卡号")
    @Length(min = 13, max = 19, message = "银行卡位数错误，请重新输入！")
    private String bankCardNumber;

    @ApiModelProperty("银行名字")
    @NotBlank(message = "银行名字不能为空")
    private String bankName;

    @ApiModelProperty("银行预留手机号")
    @Length(min = 11, max = 11, message = "银行预留手机号位数有错,请重新输入!")
    private String bankPhone;

    @ApiModelProperty("手机验证码")
    @Length(min = 6, max = 6, message = "手机验证码6为数字!")
    private String phoneCode;

}
